package com.lefeng.cockpit.common.bean.vo.datasource;

import com.alibaba.fastjson.JSONArray;
import com.lefeng.cockpit.common.bean.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 数据源返回类
 *
 * @author weifw
 */

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel
@AllArgsConstructor
@NoArgsConstructor
public class DataSourceVO extends BaseVo {

    @ApiModelProperty(value = "数据源ID")
    private Integer id;

    @ApiModelProperty(value = "数据源名称")
    private String dsName;

    @ApiModelProperty(value = "数据源")
    private String dsType;

    @ApiModelProperty(value = "数据源分组")
    private String dsGroup;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "数据库名")
    private String dbName;

    @ApiModelProperty(value = "jdbc url")
    private String url;

    @ApiModelProperty(value = "jdbc驱动类")
    private String driverClass;

    @ApiModelProperty(value = "状态：0删除 1启用 2禁用")
    private Integer status;

    @ApiModelProperty(value = "备注", hidden = true)
    private String comments;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "ip地址")
    private String ipAddress;

    @ApiModelProperty(value = "端口")
    private Integer port;

    @ApiModelProperty(value = "自定义参数")
    private JSONArray customParams;


}